package com.openbravo.pos.payment;

import java.util.Iterator;
import java.util.LinkedList;

public class PaymentInfoList
{
  private LinkedList<PaymentInfo> m_apayment = new LinkedList();

  public double getTotal()
  {
    double d = 0.0D;
    Iterator localIterator = this.m_apayment.iterator();
    while (localIterator.hasNext())
    {
      PaymentInfo localPaymentInfo = (PaymentInfo)localIterator.next();
      d += localPaymentInfo.getTotal();
    }
    return d;
  }

  public boolean isEmpty()
  {
    return this.m_apayment.isEmpty();
  }

  public void add(PaymentInfo paramPaymentInfo)
  {
    this.m_apayment.addLast(paramPaymentInfo);
  }

  public void removeLast()
  {
    this.m_apayment.removeLast();
  }

  public LinkedList<PaymentInfo> getPayments()
  {
    return this.m_apayment;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.PaymentInfoList
 * JD-Core Version:    0.6.0
 */